<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    //定义变量
    var a=12;
    a={};//对象
    a=[];//数组(集合)
    a=[{}];//对象数组
    a={
        name:"韩梅梅",
        age:18,
        myself:function (){
            console.log("方法");
        }
    };
    console.log(a.name);
    console.log(a.age);
    a.myself();
    //

</script>
<body>

</body>
</html>